import Layout from '@/layout'

const router = {
  path: '/earlyMapping',
  component: Layout,
  redirect: '/earlyMapping/unitSelection',
  name: '前期测绘',
  meta: { title: '前期测绘', icon: 'list' },
  children: [
    {
      path: 'unitSelection',
      name: '区县前期测绘单位选取',
      component: () =>
        import('@/views/earlyMapping/country/unitSelection/'),
      meta: { title: '区县前期测绘单位选取', icon: 'item' }
    },
    {
      path: 'unitInput',
      name: '区县前期测绘单位录入',
      component: () =>
        import('@/views/earlyMapping/country/unitInput'),
      meta: { title: '区县前期测绘单位录入', icon: 'item' }
    },
    {
      path: 'preliminaryExamination',
      name: '区县期测绘成果初审',
      component: () =>
        import('@/views/earlyMapping/country/mappingResults/preliminaryExamination/'),
      meta: { title: '区县区县期测绘成果初审', icon: 'item' }
    },
    {
      path: 'mapResultReviewOpinion',
      name: '区县前测绘成果初审意见',
      component: () =>
        import('@/views/earlyMapping/country/mapResultReviewOpinion/'),
      meta: { title: '区县前测绘成果初审意见', icon: 'item' }
    },
    {
      path: 'bureauReviewOpinion',
      name: '区县前测绘成果初审意见1',
      component: () =>
        import('@/views/earlyMapping/country/mapResultReviewOpinion/bureauReviewOpinion'),
      meta: { title: '区县前测绘成果初审意见1', icon: 'item' }
    },
    {
      path: 'makeMappingResultsOpinionTable',
      name: '生成期测绘成果初审意见表',
      component: () =>
        import('@/views/earlyMapping/country/mapResultReviewOpinion/makeMappingResultsOpinionTable'),
      meta: { title: '生成期测绘成果初审意见表', icon: 'item' }
    },
    {
      path: 'recheck',
      name: '市中心前测绘成果复审',
      component: () =>
        import('@/views/earlyMapping/recheck/recheck'),
      meta: { title: '市中心前测绘成果复审', icon: 'item' }
    },
    {
      path: 'reviewResultIdea',
      name: '市中心复审意见',
      component: () =>
        import('@/views/earlyMapping/reviewResultsIdea/reviewResultsIdea'),
      meta: { title: '市中心复审意见', icon: 'item' }
    },
    {
      path: 'reviewingOfficerOpinion',
      name: '市中心复核人审查意见',
      component: () =>
        import('@/views/earlyMapping/reviewResultsIdea/reviewingOfficerOpinion'),
      meta: { title: '市中心复核人审查意见', icon: 'item' }
    },{
      path: 'principalReviewResultsIdea',
      name: '市中心前测绘处室负责人审查意见',
      component: () =>
        import('@/views/earlyMapping/reviewResultsIdea/principalReviewResultsIdea'),
      meta: { title: '市中心处室负责人审查意见', icon: 'item' }
    },
    {
      path: 'reviewResultOpinionBook',
      name: '市中心期测绘成果资料审查意见书',
      component: () =>
        import('@/views/earlyMapping/reviewResultOpinionBook/reviewResultOpinionBook'),
      meta: { title: '市中心期测绘成果审查意见书', icon: 'item' }
    },
    {
      path: 'synthesisSupervise',
      name: '综合监管',
      component: () =>
        import('@/views/earlyMapping/synthesisSupervise/synthesisSupervise'),
      meta: { title: '综合监管', icon: 'item' },
      children: [{
        path: 'viewDetail',
        name: 'viewDetail',
        component: () =>
          import('@/views/earlyMapping/synthesisSupervise/viewDetail'),
        meta: { title: '查看'},
        hidden: true
      }]
    },
    {
      path: 'archivedData',
      name: '归档资料',
      component: () => import('@/views/earlyMapping/archivedData/'),
      redirect: 'archivedData/resultReviewOpinionTable',
      meta: {title: '归档资料', icon: 'item'},
      children: [
        {
          path: 'resultReviewOpinionTable',
          name: '前期测绘成果复审意见表',
          component: () =>
            import('@/views/earlyMapping/archivedData/resultReviewOpinionTable/'),
          meta: { title: '前期测绘成果复审意见表'},
        }
      ]
    },
  ]
}
export default router
